<?php

;//require_once 'Base/BlogRow.php';

/**
 * Generated Model class.
 */
class BlogRow extends Base_BlogRow implements IContentListElementProvider 
{
	public function getContentListElement($type = null)
	{
		$element = new List_Blog();
		$element->setName($this->getName());
		$element->setDescription($this->getDescription());
		$url = u(array('module' => 'default', 'controller' => 'blog','action' => 'index', 'id' => $this->getId()), null, true);
		$element->setUrl($url);
		$element->setCarma($this->getCarma());
		$element->setPostCount($this->getPostCount());
		//$element->setSubscriberCount($this->getSubscriberCount());
		$profileRow = $this->getProfileRowByProfileId();
		if ($profileRow) {
			$element->setProfileName($profileRow->getFirstName());
		}
		$element->setDate($this->getCreated());
		return $element; 
	}

}

